package com.qeegoo.b2bautozityp.moudle.login.viewmodel;

import com.kelin.mvvmlight.command.ReplyCommand;
import com.qeegoo.b2bautozityp.api.RequestApi;

import base.lib.util.ActivityManager;

/**
 * Created by lining on 2017/8/1.
 */

public class RegisterSuccessViewModel {
    private RequestApi mRequestApi;

    public RegisterSuccessViewModel(RequestApi requestApi) {
        mRequestApi = requestApi;
    }


    //去登录
    public ReplyCommand goLoginCommand = new ReplyCommand(() -> {

//        NavigateUtils.startActivity(LoginActivity.class, Intent.FLAG_ACTIVITY_CLEAR_TOP);
        ActivityManager.getActivity().finish();
//        ToastUtils.showToast("去登录");
    });
}
